/**
 * 监督检查整改模块 mock数据
 */

module.exports = [
  // 监督检查整改-----------开始
  {
    url: '/port/enforceDetailIssue/page',
    type: 'post',
    response: (_) => {
      const bodyJson = _.body
      const reportStatusVal = bodyJson.completed == '0' ? 99 : 2
      return {
        success: true,
        message: null,
        code: 200,
        timestamp: 1717468676986,
        result: {
          records: [
            {
              orgName: '南通海事局',
              enforceDate: '2026-06-01',
              companyName: null,
              reportStatus: reportStatusVal,
              updateTime: null,
              delFlag: 0,
              userName: '薛承龙',
              rectifyRequire: '第三方广东省法规',
              createBy: null,
              hasRectify: 0,
              createTime: null,
              updateBy: null,
              issueDesc: '第三方给对方',
              advise: null,
              enforceInterval: '1个月',
              enforceDetailId: '1796052750478176258',
              enforceNo: 'GS20240530JC004',
              id: '1796052743311314945',
              fileNames: '2024/05/30/0001338560114.pdf',
              rectifyDesc: '第一次整改打扫打扫打扫'
            },
            {
              orgName: '南通海事局',
              enforceDate: '2026-06-01',
              companyName: null,
              reportStatus: reportStatusVal,
              updateTime: null,
              delFlag: 0,
              userName: '薛承龙',
              rectifyRequire: '感受到发光时代',
              createBy: null,
              hasRectify: 1,
              createTime: null,
              updateBy: null,
              issueDesc: '电饭锅电饭锅',
              advise: null,
              enforceInterval: '1个月',
              enforceDetailId: '1796052750478176258',
              enforceNo: 'GS20240530JC004',
              id: '1796052743319703554',
              fileNames: '2024/06/03/东沙船务（江苏）有限公司2023安全管理分析报告 (1)1502230287.doc',
              rectifyDesc: '1'
            },
            {
              orgName: '南通海事局',
              enforceDate: '2026-06-01',
              companyName: null,
              reportStatus: reportStatusVal,
              updateTime: null,
              delFlag: 0,
              userName: '薛承龙',
              rectifyRequire: '讲话稿',
              createBy: null,
              hasRectify: 0,
              createTime: null,
              updateBy: null,
              issueDesc: '孤一体',
              advise: null,
              enforceInterval: '1个月',
              enforceDetailId: '1796052750478176258',
              enforceNo: 'GS20240530JC004',
              id: '1796052743307120641',
              fileNames: '2024/05/30/4.14M图片1337480889.jpg',
              rectifyDesc: '999999999999999999999999'
            },
            {
              orgName: '南通海事局',
              enforceDate: '2026-05-02',
              companyName: null,
              reportStatus: reportStatusVal,
              updateTime: null,
              delFlag: 0,
              userName: '薛承龙',
              rectifyRequire: '海仲检查计划001',
              createBy: null,
              hasRectify: 0,
              createTime: null,
              updateBy: null,
              issueDesc: '海仲检查计划001',
              advise: null,
              enforceInterval: '1个月',
              enforceDetailId: '1796049424474796034',
              enforceNo: 'GS20240530JC003',
              id: '1796049408202100738',
              fileNames: '',
              rectifyDesc: null
            },
            {
              orgName: '南通海事局',
              enforceDate: '2026-05-02',
              companyName: null,
              reportStatus: reportStatusVal,
              updateTime: null,
              delFlag: 0,
              userName: '薛承龙',
              rectifyRequire: '海仲检查计划003',
              createBy: null,
              hasRectify: 1,
              createTime: null,
              updateBy: null,
              issueDesc: '海仲检查计划003',
              advise: null,
              enforceInterval: '1个月',
              enforceDetailId: '1796049424474796034',
              enforceNo: 'GS20240530JC003',
              id: '1796049408210489345',
              fileNames: '2024/05/30/DOC文档1340370697.doc',
              rectifyDesc: '第二次整改第二次整改第二次整改'
            },
            {
              orgName: '南通海事局',
              enforceDate: '2026-05-02',
              companyName: null,
              reportStatus: reportStatusVal,
              updateTime: null,
              delFlag: 0,
              userName: '薛承龙',
              rectifyRequire: '海仲检查计划002',
              createBy: null,
              hasRectify: 0,
              createTime: null,
              updateBy: null,
              issueDesc: '海仲检查计划002',
              advise: null,
              enforceInterval: '1个月',
              enforceDetailId: '1796049424474796034',
              enforceNo: 'GS20240530JC003',
              id: '1796049408206295042',
              fileNames: '2024/05/30/iShot_2024-04-26_10.17.021439240622.png',
              rectifyDesc: '12'
            },
            {
              orgName: '南通海事局',
              enforceDate: '2024-06-01',
              companyName: null,
              reportStatus: reportStatusVal,
              updateTime: null,
              delFlag: 0,
              userName: '薛承龙',
              rectifyRequire: '二期为去',
              createBy: null,
              hasRectify: 0,
              createTime: null,
              updateBy: null,
              issueDesc: '问请问',
              advise: null,
              enforceInterval: '1个月',
              enforceDetailId: '1795345538122379265',
              enforceNo: 'GS20240528JC004',
              id: '1795345535099428865',
              fileNames: '2024/05/28/0511系统优化-分析1445550551.docx',
              rectifyDesc: '阿萨大厦'
            },
            {
              orgName: '南通海事局',
              enforceDate: '2024-03-26',
              companyName: null,
              reportStatus: reportStatusVal,
              updateTime: null,
              delFlag: 0,
              userName: '薛承龙',
              rectifyRequire: '1111',
              createBy: null,
              hasRectify: 0,
              createTime: null,
              updateBy: null,
              issueDesc: '测试整改',
              advise: null,
              enforceInterval: '1个月',
              enforceDetailId: '1772538617262862337',
              enforceNo: 'GS20240326JC001',
              id: '1772538621814857729',
              fileNames: '2024/03/26/新建文本文档1618460480.txt',
              rectifyDesc: '测试整'
            },
            {
              orgName: '南通海事局',
              enforceDate: '2024-03-22',
              companyName: null,
              reportStatus: reportStatusVal,
              updateTime: null,
              delFlag: 0,
              userName: '张新星',
              rectifyRequire: '南通海仲航运有限公司',
              createBy: null,
              hasRectify: 0,
              createTime: null,
              updateBy: null,
              issueDesc: '南通海仲航运有限公司',
              advise: null,
              enforceInterval: '2个月',
              enforceDetailId: '1771109481671671809',
              enforceNo: 'GS20240322JC003',
              id: '1771109492066324481',
              fileNames: '2024/03/22/图片1746320372.docx',
              rectifyDesc: '4343'
            },
            {
              orgName: '南通海事局',
              enforceDate: '2024-03-22',
              companyName: null,
              reportStatus: reportStatusVal,
              updateTime: null,
              delFlag: 0,
              userName: '张新星',
              rectifyRequire: '南通海仲航运有限公司',
              createBy: null,
              hasRectify: 0,
              createTime: null,
              updateBy: null,
              issueDesc: '南通海仲航运有限公司',
              advise: null,
              enforceInterval: '3个月',
              enforceDetailId: '1771110243441164289',
              enforceNo: 'GS20240322JC004',
              id: '1771110253856788481',
              fileNames: '2024/03/22/docx小文件1745560634.docx',
              rectifyDesc: '444'
            }
          ],
          total: 14,
          size: 10,
          current: 1,
          orders: [],
          optimizeCountSql: true,
          searchCount: true,
          countId: null,
          maxLimit: null,
          pages: 2
        },
        param: null
      }
    }
  },
  {
    url: '/port/enforceDetailIssue/rectify',
    type: 'post',
    response: (_) => {
      return {
        success: true,
        message: '成功',
        code: 200,
        timestamp: 1717483146384,
        result: null,
        param: null
      }
    }
  },
  {
    url: '/port/enforceDetailIssue/detail/*',
    type: 'get',
    response: (_) => {
      return {
        success: true,
        message: null,
        code: 200,
        timestamp: 1717484020333,
        result: null,
        param: null
      }
    }
  }

  // 监督检查整改-----------结束
]
